# Contributor: Michael Pirogov <vbnet.ru@gmail.com>
# Maintainer: Michael Pirogov <vbnet.ru@gmail.com>
pkgname=py3-lib_users
_pkgname=lib_users
pkgver=0.15
pkgrel=0
pkgdesc="Checks /proc for libraries being mapped but marked as deleted"
url="https://github.com/klausman/lib_users"
arch="noarch"
license="GPL-2.0-or-later"
depends="python3"
makedepends="py3-setuptools"
options="!check" # https://bugs.python.org/issue29130
source="$pkgname-$pkgver.tar.gz::https://github.com/klausman/lib_users/archive/v$pkgver.tar.gz
	setuptools.patch"
builddir="$srcdir"/$_pkgname-$pkgver

build() {
	python3 setup.py build
}

check() {
	python3 -m unittest
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
f9eab0d7c634602c496154dc20bd8374842df77c6abfaf69a0c34013f01c3a7541a006cb2b027539f6c088a55bea78682bf156723899d614f39ee48773fb9ea8  py3-lib_users-0.15.tar.gz
c1b18709799af0f6ae5a0644beb0a95c709d07e28033fd68801cabe042ed0dbbaa3b7f1efe88a078f53a200f074e198404dc11fc149a85832035e8389577921d  setuptools.patch
"
